package com.aceleeyy.sevenstar.dao;

import com.aceleeyy.sevenstar.model.BookList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookListMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BookList record);

    int insertSelective(BookList record);

    BookList selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BookList record);

    int updateByPrimaryKey(BookList record);

    int deleteByUserIdAndMagazineId(BookList record);

    BookList selectByUserIdAndMagazineId(BookList record);

    List<BookList> selectMyReads(Integer userId);

    int deleteMyReads(Integer userId);
}